From: Giovanni Campagna Date: Sun, 16 Sep 2012 17:35:41 +0000 (+0200) Subject: Wanda: don't recreate the texture if the icon size doesn't change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5847 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=70c34baafb64b05459e785d1cffad4bb57a079ba;p=gnome-shell.git Wanda: don't recreate the texture if the icon size doesn't change Wanda flickers if the animation is recreated, but we don't need to if the size doesn't change (as we're not affected by icon theme changes). https://bugzilla.gnome.org/show_bug.cgi?id=684154 --- diff --git a/js/ui/wanda.js b/js/ui/wanda.js index c37ff2992..378c7ad50 100644 --- a/js/ui/wanda.js +++ b/js/ui/wanda.js @@ -77,11 +77,16 @@ const WandaIcon = new Lang.Class({ } })); - this._i = 0; - return this._animations; }, + _createIconTexture: function(size) { + if (size == this.iconSize) + return; + + this.parent(size); + }, + _update: function() { let n = this._animations.get_n_children(); if (n == 0) {